@extends("public.father")
@section("content")

    {{--这里显示错误信息--}}
    @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif



    <h1 style="text-align: center;margin-top: 70px">注册信息</h1>
    <form style="width: 30%;margin: 0 auto" method="post" action="/longin">
        @csrf
        <div class="form-group">
            <label for="exampleInputEmail1">用户名</label>
            <input name="name" type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入账号">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">邮箱</label>
            <input name="email" type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入邮箱">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input name="password" type="password" class="form-control" id="exampleInputPassword1" placeholder="请输入密码">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">确认密码</label>
            <input name="password_confirmation" type="password" class="form-control" id="exampleInputPassword1" placeholder="请确认密码">
        </div>
        <button class="btn btn-primary">提交</button>
    </form>
    @endsection